import {BaseEntity, Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany, OneToOne, PrimaryColumn, PrimaryGeneratedColumn, RelationId} from 'typeorm';

@Entity('fa_cms_addondownload', {schema: 'fastadmin' } )
export class fa_cms_addondownload {

    @Column('int', {
        nullable: false,
        primary: true,
        name: 'id',
        })
    id: number;

    @Column('longtext', {
        nullable: false,
        name: 'content',
        })
    content: string;

    @Column('enum', {
        nullable: true,
        name: 'os',
        })
    os: string | null;

    @Column('varchar', {
        nullable: true,
        name: 'version',
        })
    version: string | null;

    @Column('varchar', {
        nullable: true,
        name: 'filesize',
        })
    filesize: string | null;

    @Column('enum', {
        nullable: true,
        name: 'language',
        })
    language: string | null;

    @Column('varchar', {
        nullable: true,
        length: 1500,
        name: 'downloadurl',
        })
    downloadurl: string | null;

    @Column('varchar', {
        nullable: true,
        length: 1500,
        name: 'screenshots',
        })
    screenshots: string | null;

    @Column('decimal', {
        nullable: true,
        default: () => '\'0.00\'',
        scale: 2,
        name: 'price',
        })
    price: string | null;

    @Column('varchar', {
        nullable: true,
        length: 10,
        default: () => '\'0\'',
        name: 'downloads',
        })
    downloads: string | null;

}
